<!DOCTYPE html>
<html>
<head>
  <title></title>
  <script type="text/javascript" src="static/jquery.js"></script>
</head>
<body>
  <button id="fetch">fetch</button>
  <button id="create">create</button>

  <script type="text/javascript">
    $(function(){
      $("button#create").click(function(){
        $.ajax({
          method: "POST",
          url: "/users/1",
          data: JSON.stringify({some: "data"})
        })
      })

      $("button#fetch").click(function(){
        $.getJSON("/users")
      })

      $("button#pushState").click(function(){
        window.history.pushState({foo: "bar"}, null, "pushState.html")
      })
    })
  </script>
</body>
</html>